from api.ihrmLoginApi import IhrmLoginApi

# 封装 获取请求头中的令牌
def get_header():
    login_data = {"mobile": "13800000002", "password": "123456"}
    resp = IhrmLoginApi.login(login_data)
    print(resp.json())
    header = {"Authorization": "Bearer" + " " + resp.json().get("data")}

    return header

if __name__ == '__main__':
    print(get_header())